﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage/MasterPage.master"
    CodeFile="CreateUser.aspx.cs" Theme="default" Inherits="webapp4U.UI.Article" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>   
<%@ Register Src="~/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>


<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" Runat="Server">
<uc:Title ID="Title1" runat="server"  />

<asp:UpdatePanel ID="CreateUserUpdatePanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>

</ContentTemplate>
</asp:UpdatePanel>                   
                
<table width="500px" align="center">
    <tr>
        <td>
                <asp:ValidationSummary runat="server" ID="valChangePasswordSummary" ShowMessageBox="true" ShowSummary="false" />
              
                <div align="center">
                    <asp:Panel runat="server" ID="PanelMsg" Visible="false" CssClass="lblMsg" Width="400px" HorizontalAlign="Center">
                        <asp:Label runat="server" ID="lblMsg" Font-Bold="true"></asp:Label>
                    </asp:Panel>
                </div>
                
                <asp:Panel runat="server" ID="PanelDangky" HorizontalAlign="Center" DefaultButton="btSave">
                <table  align="center" cellpadding="7" cellspacing="0" border="0">
                    <tr>
                        <td align="right" style="color: Red">
                            (*)<%=ResourceManager.GetString("Register_RequiredFields")%>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <!--Register_LogIn_Information -->
                    <asp:Panel runat="server" ID="PanelLogon">
                    <tr>
                        <td align="right">
                            <span class="Required">*</span>
                            <%=ResourceManager.GetString("Register_UserName")%>
                            :</td>
                        <td>
                            <asp:TextBox ID="txtUserName" MaxLength="250" runat="server" Width="250"></asp:TextBox>
                            <webapp4U:ReqFValid SetFocusOnError="true" ResourceName="Register_UserName_error"
                                ControlToValidate="txtUserName" ID="ReqFValid2" runat="server" Display="none" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="Required">*</span>
                            <%=ResourceManager.GetString("Register_Password")%>
                            :</td>
                        <td>
                            <asp:TextBox ID="txtPassword" TextMode="Password" CssClass="textfield" MaxLength="250"
                                runat="server" Width="250" />
                            <asp:RequiredFieldValidator SetFocusOnError="true" ControlToValidate="txtPassword"
                                ID="ReqPassword" runat="server" ErrorMessage="" Display="none" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="Required">*</span>
                            <%=ResourceManager.GetString("Register_ConfirmPassword")%>
                            :</td>
                        <td>
                            <asp:TextBox ID="txtRePassword" TextMode="Password" CssClass="textfield" MaxLength="250"
                                runat="server" Width="250" />
                            <asp:CompareValidator SetFocusOnError="true" ID="CompareValRePassword" ControlToValidate="txtRePassword"
                                ControlToCompare="txtPassword" runat="server" ErrorMessage="" Display="none" />
                        </td>
                    </tr>
                    </asp:Panel>
                    
                    <asp:Panel runat="server" ID="PanelEmployer" Visible="true">
                        <tr class="Hidden">
                            <td align="right">
                                <span class="Required">*</span>
                                <%=ResourceManager.GetString("Register_CompanyName")%>
                                :</td>
                            <td>
                                <asp:TextBox ID="txtCompanyName" MaxLength="250" runat="server" Width="250"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="Hidden">
                            <td align="right" valign="top">
                                &nbsp;
                                <%=ResourceManager.GetString("Register_CompanyDescription")%>
                                :</td>
                            <td>
                                <asp:TextBox ID="txtCompanyDesc" MaxLength="3500" runat="server" Width="250" TextMode="MultiLine"
                                    Rows="5" />
                            </td>
                        </tr>
                    </asp:Panel>
                    <tr>
                        <td align="right">
                            <span class="Required">*</span>
                            <%=ResourceManager.GetString("Register_Email")%>
                            :</td>
                        <td>
                            <asp:TextBox ID="txtEmail" MaxLength="250" runat="server" Width="250"></asp:TextBox>
                            <asp:RequiredFieldValidator SetFocusOnError="true" ControlToValidate="txtEmail" ID="ReqEmail"
                                ErrorMessage="" runat="server" Display="none" />
                            <asp:RegularExpressionValidator SetFocusOnError="true" Display="none" ID="RegEmail"
                                runat="server" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="Required">*</span>
                            <%=ResourceManager.GetString("Register_FirstName")%>
                            :</td>
                        <td>
                            <asp:TextBox ID="txtFirstName" MaxLength="250" runat="server" Width="250" />
                            <webapp4U:ReqFValid ControlToValidate="txtFirstName" ResourceName="Register_FirstName_error"
                                runat="server" ID="ReqFValid5" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" valign="top">
                            <span class="Required">*</span>
                            <%=ResourceManager.GetString("Register_LastName")%>
                            :</td>
                        <td>
                            <asp:TextBox ID="txtLastName" MaxLength="250" runat="server" Width="250" />
                            <webapp4U:ReqFValid ControlToValidate="txtLastName" ResourceName="Register_LastName_error"
                                runat="server" ID="ReqFValid6" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="Required">*</span>
                            <%=ResourceManager.GetString("Register_Address")%>
                            :</td>
                        <td>
                            <asp:TextBox ID="txtAddess" MaxLength="250" runat="server" Width="250" />
                            <webapp4U:ReqFValid ControlToValidate="txtAddess" ResourceName="Register_Address_error"
                                runat="server" ID="ReqFValid4" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="Required">*</span>
                            <%=ResourceManager.GetString("Country")%>
                            :</td>
                        <td>
                            <webapp4U:ddlCountry ID="ddlCountry" runat="server" Width="255" CssClass="Textbox" />
                            <webapp4U:ReqFValid ControlToValidate="ddlCountry" ResourceName="Register_Country_error"
                                CssClass="Textbox" runat="server" ID="ReqFValidddlCountry" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="Required">*</span>
                            <%=ResourceManager.GetString("Province")%>
                            :</td>
                        <td>
                            <webapp4U:ddlJobLocation ID="ddlJobLocation" runat="server" Width="255" CssClass="Textbox" />
                            <webapp4U:ReqFValid ControlToValidate="ddlJobLocation" ResourceName="Register_Province_City_error"
                                CssClass="Textbox" runat="server" ID="ReqFValid1" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="Required">*</span>
                            <%=ResourceManager.GetString("Register_ContactPhone")%>
                            :</td>
                        <td>
                            <asp:TextBox ID="txtPhone" MaxLength="250" runat="server" Width="250"></asp:TextBox>
                            <webapp4U:ReqFValid ControlToValidate="txtPhone" ResourceName="Register_ContactPhone_error"
                                runat="server" ID="ReqFValid3" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            &nbsp;
                            <%=ResourceManager.GetString("Register_ContactMobile")%>
                            :</td>
                        <td>
                            <asp:TextBox ID="txtMobile" MaxLength="250" runat="server" Width="250" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            &nbsp;
                            <%=ResourceManager.GetString("Register_FaxNumber")%>
                            :</td>
                        <td>
                            <asp:TextBox ID="txtFax" MaxLength="250" runat="server" Width="250" />
                        </td>
                    </tr>
                    <tr class="Hidden">
                        <td align="right">
                            &nbsp;
                            <%=ResourceManager.GetString("Register_Website")%>
                            :</td>
                        <td>
                            <asp:TextBox ID="txtWebsite" MaxLength="250" runat="server" Width="250" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" colspan="2">
                            <asp:Button runat="server" ID="btSave" OnClick="btSave_Click" />
                        </td>
                    </tr>
                </table>
                
                </asp:Panel>
                
                <br /><br /><br />
        </td>
    </tr>
</table>


  
    
</asp:Content>